<html><head><title>DisplayPopupMenu</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">DisplayPopupMenu()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>DisplayPopupMenu</b></font>(#Menu, WindowID [, x, y])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Displays a PopupMenu under the current mouse position or at the given screen location. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Menu</i></td>
<td width="90%"> 
The menu to display. It must have been created with <a href="createpopupmenu.html">CreatePopupMenu()</a> or 
<a href="createpopupimagemenu.html">CreatePopupImageMenu()</a>. 

</td></tr>
<tr><td><i>WindowID</i></td>
<td> 
The window with which to associate the popup menu. This value can be obtained with 
the <a href="../window/windowid.html">WindowID()</a> function. 

</td></tr>
<tr><td><i>x, y (optional)</i></td>
<td> 
The location at which the menu should be displayed in screen coordinates. These are 
coordinates in pixels relative to the upper-left corner of the primary monitor. 
<br>
<br>
If this parameter is not specified, the menu is displayed at the current mouse position. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

The popup menu will be hidden again when the user selects an item or clicks somewhere outside of 
the area of the popup menu. 
<br>
<br>
For an example and a preview image see the <a href="createpopupmenu.html">CreatePopupMenu()</a> help. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="createpopupmenu.html">CreatePopupMenu()</a>, <a href="createpopupimagemenu.html">CreatePopupImageMenu()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=disablemenuitem.html>DisableMenuItem()</a> - <a href=index.html>Menu Index</a> - <a href=freemenu.html>FreeMenu()</a> ->

</body></html>